package com.szrt.java.day20170113.ch07;

/**
 * 适配器  媒人 
 * 
 * 1: 实现电脑的接口
 * 2: 和键盘去组合
 * @author zsrt
 *
 */
public class Adapter implements USB {
	
	private KeyBoard key;
	
	private Mouse mouse;
	
	private Phone phone;
	
	


	public Adapter(KeyBoard key,Mouse mouse,Phone phone) {
		this.key = key;
		this.mouse = mouse;
		this.phone = phone;
	}

	@Override
	public void connection() {
		key.print();
		mouse.con();
		phone.cd();
	}

}
